home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ COM Options 1.xpl < prev    next >
Text File  |  2003-11-19  |  3KB  |  80 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="9"
  3. "COUNT"="5"
  4. "UIPATH"="Hardware\Modem"
  5. "NAME"="COM Port Speed"
  6. "VERSION"="3.03"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Speed up..."
  9. "DESCRIPTION 1"="WARNING: Do this ONLY IF using dial-up (analog) modems (e.g. 56K, ISDN) connected ONLY to a Serial Port (COMx), NOT IF using xDSL, Cable, Satellite, CNR, USB or Network (digital) modems!"
  10. "DESCRIPTION 2"="By default all Windows 95/98/NT4/2000/ME/XP releases allow only up to 9600 bps (bits per second) on all Serial Ports: COMx = COM1 - COM9 [BIOS (hardware) ports: COM1 - COM4 ; Virtual (emulated) ports: COM5 - COM9]."
  11. "DESCRIPTION 3"="These settings enable serial (analog) modem throughput over 9600 bps, to speed up significantly Internet access."
  12. "DESCRIPTION 4"="See [http://members.aol.com/axcel216/last2.htm#FAST] and [http://members.aol.com/axcel216/newtip15.htm#F56K] for more Win95/98/ME details."
  13. "DESCRIPTION 5"="WARNING: If using internal modems located in the Communication Networking Riser (CNR) slot, do NOT use these settings! Such cards rely on a very tricky method to work, which is incompatible with these settings."
  14. "AUTHOR"="Xteq Systems"
  15. "CONTACTURL"="http://www.xteq.com/"
  16. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  17. "COMMENT 1"="Thanks to AXCEL216 [http://members.aol.com/axcel216/] + CptSiskoX [http://members.fortunecity.com/computingx/]."
  18. "COMMENT 2"="Thanks to Manish Jain [emmjanex@hotmail.com] for the CNR bug notice."
  19. "WARNING"="1"
  20.  
  21.  
  22. '
  23. sFile="WIN.INI"
  24. sReg="HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Ports"
  25. sSec="Ports"
  26. sTa="COM"
  27. sTb=":"
  28. '*DEFAULT*
  29. sV_Normal="9600,n,8,1,x"
  30. '*BETTER*
  31. sV_Better="921600,n,8,1,p"
  32. bIniMode=true
  33. Sub Plugin_Initialize
  34. Call SetUIElement(1,"Speed up COM1:")
  35. Call SetUIElement(2,"Speed up COM2:")
  36. Call SetUIElement(3,"Speed up COM3:")
  37. Call SetUIElement(4,"Speed up COM4:")
  38. Call SetUIElement(5,"Speed up COM5:")
  39. Call SetUIElement(6,"Speed up COM6:")
  40. Call SetUIElement(7,"Speed up COM7:")
  41. Call SetUIElement(8,"Speed up COM8:")
  42. Call SetUIElement(9,"Speed up COM9:")
  43. if GetWinVer=1 or GetWinVer=3 then
  44. bIniMode=true
  45. else
  46. bIniMode=false
  47. end if
  48. for i=1 to 9
  49. s=sTa & i & sTb
  50. if bIniMode then
  51. s=IniReadValue(sFILE,sSec,s)
  52. else
  53. s=RegReadValue(sReg & s)
  54. end if
  55. if s=sV_Better then
  56. Call SetUIElementEx(i,true)
  57. end if
  58. next
  59. End Sub
  60. Sub Plugin_CheckData(ElementIndex)
  61. End Sub
  62. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  63. for i=1 to 9
  64. b=GetUIElementEx(i)
  65. s=sTa & i & sTb
  66. if b=true then
  67. sTemp=sV_Better
  68. else
  69. sTemp=sV_Normal
  70. end if
  71. if bIniMode then
  72. Call IniWriteValue(sFILE,sSec,s,sTemp)
  73. else
  74. Call RegWriteValue(sReg & s,sTemp,1)
  75. end if
  76. next
  77. Call Logoff()
  78. End Sub
  79. Sub Plugin_Terminate
  80. End Sub